package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhuanjiabiandongshenbaoChuguoMapper;
import com.ruoyi.system.domain.ZhuanjiabiandongshenbaoChuguo;
import com.ruoyi.system.service.IZhuanjiabiandongshenbaoChuguoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 专家变动申报_出国Service业务层处理
 * 
 * @author dy
 * @date 2024-05-27
 */
@Service
public class ZhuanjiabiandongshenbaoChuguoServiceImpl implements IZhuanjiabiandongshenbaoChuguoService 
{
    @Autowired
    private ZhuanjiabiandongshenbaoChuguoMapper zhuanjiabiandongshenbaoChuguoMapper;

    /**
     * 查询专家变动申报_出国
     * 
     * @param shenbaoid 专家变动申报_出国主键
     * @return 专家变动申报_出国
     */
    @Override
    public ZhuanjiabiandongshenbaoChuguo selectZhuanjiabiandongshenbaoChuguoByShenbaoid(String shenbaoid)
    {
        return zhuanjiabiandongshenbaoChuguoMapper.selectZhuanjiabiandongshenbaoChuguoByShenbaoid(shenbaoid);
    }

    /**
     * 查询专家变动申报_出国列表
     * 
     * @param zhuanjiabiandongshenbaoChuguo 专家变动申报_出国
     * @return 专家变动申报_出国
     */
    @Override
    public List<ZhuanjiabiandongshenbaoChuguo> selectZhuanjiabiandongshenbaoChuguoList(ZhuanjiabiandongshenbaoChuguo zhuanjiabiandongshenbaoChuguo)
    {
        return zhuanjiabiandongshenbaoChuguoMapper.selectZhuanjiabiandongshenbaoChuguoList(zhuanjiabiandongshenbaoChuguo);
    }

    /**
     * 新增专家变动申报_出国
     * 
     * @param zhuanjiabiandongshenbaoChuguo 专家变动申报_出国
     * @return 结果
     */
    @Override
    public int insertZhuanjiabiandongshenbaoChuguo(ZhuanjiabiandongshenbaoChuguo zhuanjiabiandongshenbaoChuguo)
    {
        return zhuanjiabiandongshenbaoChuguoMapper.insertZhuanjiabiandongshenbaoChuguo(zhuanjiabiandongshenbaoChuguo);
    }

    /**
     * 修改专家变动申报_出国
     * 
     * @param zhuanjiabiandongshenbaoChuguo 专家变动申报_出国
     * @return 结果
     */
    @Override
    public int updateZhuanjiabiandongshenbaoChuguo(ZhuanjiabiandongshenbaoChuguo zhuanjiabiandongshenbaoChuguo)
    {
        return zhuanjiabiandongshenbaoChuguoMapper.updateZhuanjiabiandongshenbaoChuguo(zhuanjiabiandongshenbaoChuguo);
    }

    /**
     * 批量删除专家变动申报_出国
     * 
     * @param shenbaoids 需要删除的专家变动申报_出国主键
     * @return 结果
     */
    @Override
    public int deleteZhuanjiabiandongshenbaoChuguoByShenbaoids(String shenbaoids)
    {
        return zhuanjiabiandongshenbaoChuguoMapper.deleteZhuanjiabiandongshenbaoChuguoByShenbaoids(Convert.toStrArray(shenbaoids));
    }

    /**
     * 删除专家变动申报_出国信息
     * 
     * @param shenbaoid 专家变动申报_出国主键
     * @return 结果
     */
    @Override
    public int deleteZhuanjiabiandongshenbaoChuguoByShenbaoid(String shenbaoid)
    {
        return zhuanjiabiandongshenbaoChuguoMapper.deleteZhuanjiabiandongshenbaoChuguoByShenbaoid(shenbaoid);
    }
}
